package com.boot.springbootsystem.mapper;

import com.boot.springbootsystem.pojo.Visitor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VisitorMapper {

    List<Visitor> visitors();

    int insert(Visitor visitor);

    int delete(int id);

    Visitor findById(int id);

    Visitor findByEmailPassword(String email, String password);

    int update(Visitor visitor);
}
